package com.ns.rmi.impl;

import java.rmi.RemoteException;

import javax.rmi.PortableRemoteObject;

import com.ns.rmi.intf.HelloIntf;

public class HelloImpl extends PortableRemoteObject implements HelloIntf {

	public HelloImpl() throws RemoteException {
		super();
	}

	@Override
	public String echo(String string) throws RemoteException {
		System.out.println("Call from "+string);
		return "Hello "+string;
	}

}
